package com.weipai.demo.controller;

import com.weipai.demo.service.PresentationService;
import com.weipai.demo.util.Response;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 赵项阳
 * @Date: 2019/6/28 16:20
 * @Version 1.0
 */
@RestController
public class PresentationController {

    @Autowired
    private PresentationService presentationService;

    //网站介绍添加或修改
    @RequestMapping(value = "/presentation/save")
    public Response save(String presentation,Integer id){
        return presentationService.save(presentation, id);
    }

    //网站介绍展示
    @RequestMapping(value = "/presentation/show")
    public Response show(){
        return presentationService.show();
    }
    //删除网站介绍
    @RequestMapping(value = "/presentation/delete")
    public Response delete(Integer id){
        return presentationService.delete(id);
    }

}
